<?php
include('includes/utilities.php');
if ($_GET['id']){
    $id=$_GET['id'];
    $con=OpenDB();
    if (mysql_query("DELETE FROM obra_social WHERE id_obra_social='$id'")==FALSE)
        if (mysql_errno()==1451)
            echo FK_ERROR;
        else {
            $titulo = 'Eliminar Obras Sociales';
            include('menu.php');
            echo POST_ERROR;
            
        }
    else{
        CloseDB($con);
        header("location: adminObra_social.php");
    }
        CloseDB($con);
}
?>
